<?php 

 header("Content-type: text/html; charset=utf-8");
require("conn.php");

$id = $_POST['id'];
$sql = "select * from pin where id = ".$id."";
$result = mysql_fetch_assoc(mysql_query($sql,$conn));


echo  json_encode($result);